/*
* Copyright (c)  2017, ueboot.com
* All rights reserved.
* 2017-11-05 17:53:32
*/
package com.ueboot.weishop.service.order;

import com.ueboot.weishop.entity.lottery.LotteryRecordEntity;
import com.ueboot.weishop.entity.order.OrderEntity;
import com.ueboot.weishop.entity.order.OrderIssueEntity;
import com.ueboot.core.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by ziv  on 2017-11-05 17:53:32.
 * @author ziv
 * @since 2.0 by autocode
 */
public interface OrderIssueService extends BaseService<OrderIssueEntity> {

	List<OrderIssueEntity> findBySendDmsStatus(String sendDmsStatus);

	String sendDmsCoupon(List<Map<String, String>> contentList);

	void updateAll(List<OrderIssueEntity> issueList);

	OrderIssueEntity findTopBySeqNo(String orderNo);

	Page<OrderIssueEntity> findByReq(Pageable pageable, OrderIssueEntity params, Date startTime, Date endTime);

	List<OrderIssueEntity> findBySendDmsStatusAndCancelAndSendSmsStatus(String sendDmsStatus, String cancer, String sendSmsStatus);

	void saveIssueUpdateOrderAndLottery(List<OrderIssueEntity> issueList, List<LotteryRecordEntity> lotteryRecordList, List<OrderEntity> orderList);

	void save(List<OrderIssueEntity> issueList);

	List<OrderIssueEntity> findByOrderNo(String orderNo);
}
